<template name="cardDetails">
	{{#if coupon}}
		<div class="x7-card-package">
			<div class="x7-card-info">
				<div class="x7-card-style">
					<img src="/img/card/card_style.png" height="30px" width="100px" />
					<div class="x7-card-category">
						{{coutype coupon.coupon_type}}
					</div>
				</div>
				<div class="x7-card-content">
					<div class="x7-card-title">
						<span class="x7-card-name">{{coupon.merchant_name}}</span>
						<span class="x7-card-price">
							{{couponDetail coupon.rule_detail}}
						</span>
					</div>
					<div class="x7-card-subtitle">
						<span class="x7-card-subname"></span>
						<span class="x7-card-subprice">
							{{#if coupon.rule_detail.cut}}
							满{{coupon.rule_detail.full}}元可用
							{{/if}}
						</span>
					</div>
					<div class="x7-card-border-bottomleft"></div>
					<div class="x7-card-border-bottomright"></div>
				</div>
			</div>
			<div class="x7-card-subinfo">
				<div class="x7-card-border-topleft"></div>
				<div class="x7-card-border-topright"></div>
				<span class="x7-card-left">使用期限：{{getLocalTime coupon.start_time}}&nbsp;~&nbsp;{{getLocalTime coupon.end_time}}</span>
			</div>
		</div>
		{{#if coupon.forbidden_days}}
		<div class="f7-coupon-forbidden">
			<div class="f7-coupon-forbidden-header">禁用日期:</div>
			<div class="f7-coupon-forbidden-content">
				{{#each item in coupon.forbidden_dates}}
					<span>{{item}}</span>
				{{/each}}
			</div>
		</div>
		{{/if}}
		{{#if coupon.forbidden_days}}
		<div class="f7-coupon-forbidden">
			<div class="f7-coupon-forbidden-header">禁用星期:</div>
			<div class="f7-coupon-forbidden-content">
				{{#each item in coupon.forbidden_days}}
					<span>{{weeks item}}</span>
				{{/each}}
			</div>
		</div>
		{{/if}}
		{{#if coupon.note}}
		<div class="card cardDetails-descri">
			<div class="card-header">优惠券使用说明:</div>
			<div class="card-content">
				<div class="card-content-inner">
					{{strtohtml coupon.note}}
				</div>
			</div>
		</div>
		{{/if}}
	{{else}}
	该优惠券不存在！
	{{/if}}
</template>